package map.data
{
	import flash.geom.Point;

	public class Front
	{
		public var position:Point;
		public var nativePath:String;
		public function Front(nativePath:String,position:Point)
		{
			this.nativePath = nativePath;
			this.position = position;
		}
		
		public function toString():String
		{
			return "url:"+nativePath+
				" x:"+position.x+
				" y:"+position.y;
		}
		
		public static function decode(obj:Object):Front
		{
			return new Front(obj.nativePath,new Point(obj.position.x,obj.position.y));
		}
	}
}